package com.wecan.base.PO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.wecan.base.PO.base.UpdateUserBasePO;
import com.wecan.base.enums.EnableStatus;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @Author liuzhihao
 * @Date 2022.01.18
 * @Version ${version}
 * @Description ${description}
 */
@Data
@Schema(title = "角色", description = "系统角色信息")
public class Role extends UpdateUserBasePO {
    @Schema(title = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long id;

    @Schema(title = "角色名称")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String name;

    @Schema(title = "角色权限列表")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String permissionIds;

    @Schema(title = "角色描述")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String remark;

    @Schema(title = "角色状态")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private EnableStatus status;
}
